<%@page import="com.srini.util.Constants"%>
<%@page import="com.srini.util.AppUtil"%>
<%@page import="com.srini.pojos.LoggedInUser"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
LoggedInUser user = (LoggedInUser) session.getAttribute(Constants.LOGGEDIN_USER);
String userName = "";
if (user != null) {
userName = user.getUserInfo().getDisplayName();
String role = user.getRole().getRole();
if (AppUtil.isEmpty(userName))
	userName = user.getUserInfo().getFirstName();
if (AppUtil.isEmpty(userName)) {
	userName = user.getUserName();
}
}
%>
<div class="header-bar clearfix"><div class="header-text-left"><span class="logo gradientV">D M S</span><span class="caption">office away from office ...</span></div><%if (user != null){ %><div class="header-text-right"><%=userName %><div class="login_details"><a href="logout" >(logout)</a></div></div><%} %></div>
